﻿@using System.Data;
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    DataTable dt = (DataTable)ViewData["DM_BannerSYS_List"];
    string TemplateID = (string)ViewData["M_TemplateID"];
}
<style type="text/css">
    .border_right
    {
        border-right:1px solid #000000;
        width:20%;
    }
    .left
    {
        width:20%;
    }
    
    #SYS_DanhMucLinhVuc
    {
        width:100%;
        font-size:11px;
        font-family:Verdana;
    }
    .w_STT
    {
        width:7%;
    }
    .w_LinhVuc
    {
        
    }
    .w_HoatDong
    {
        width:15%;
    }
    .w_XuLy
    {
        width:7%;
    }
    .title_Header
    {
        background-color:Blue;
        color:White;
        font-weight:bold;
        text-align:center;
    }
</style>
<table style="width: 100%;" border="0" cellpadding="0" cellspacing="3">
    <tr>
        <td valign="top" class="border_right">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr><td><a href="/Danhmucsys/DanhmucsysList/@TemplateID">- Danh sách control</a></td></tr>
            </table>
        </td>
        <td valign="top">
            <table style="width: 100%;" border="1" cellpadding="3" cellspacing="0">
                <tr>
                    <td class="title_Header">BannerID</td>
                    <td class="w_STT title_Header" align="center">
                        TemplateID
                    </td>
                    <td class="w_HoatDong title_Header" align="center">
                        ParentID
                    </td>
                    <td class="title_Header">Xử lý</td>
                    <td width="20px" align="center"><a href="/Bannersys/BannersysAdd/@TemplateID"><img alt="" src="/Images/Icons/add.gif" /></a></td>
                </tr>

                @for (int i = 0; i < dt.Rows.Count; i++)
                {
                <tr>
                    <td class="w_STT" align="center">@dt.Rows[i]["DMBannerID"]</td>
                    <td class="w_STT" align="center">@dt.Rows[i]["M_TemplateID"]</td>
                    <td class="w_HoatDong" align="center">@dt.Rows[i]["ParentID"]</td>
                    <td class="w_XuLy" align="center" colspan="2"><a href="/Bannersys/BannersysEdit/@dt.Rows[i]["DMBannerID"]"><img alt="" src="/Images/Icons/register.gif" /></a></td>
                </tr>
                }
            </table>
        </td>
    </tr>
</table>
